<table width="100%" class="ta-h" id="dataList">
  <thead>
    <tr>
      <th width="52"><a>选择</a></th>
      <th width="100">名称</th>
      <th></th>
      <th width="80">数量</th>
      <th width="80">金额</th>
      <th width="120">操作</th>
    </tr>
  </thead>
  <tbody>
    <?php foreach($res as $v){?>
    <tr i_ID="<?php echo $v['id']?>" data-num="<?php echo $v['store_num']?>" data-money=<?php echo $v['money']?> class="sl-i" height="120">
      <td><?php echo $v['state']>0? ( $v['num']>$v['store_num'] ? '库存不足' : '<label class="wide"><input type="checkbox" checked /></label>') :'已失效'?></td>
      <td><img width="100" height="80" src="<?php e_qh($v['pic'])?>" /></td>
      <td><a href="<?php echo url::g('u=cgoods\v&id='. $v['data_id'])?>" target="_blank"><?php e_h($v['name'])?></a></td>
      <td><?php echo $v['num']?></td>
      <td class="txt-a-r"><?php echo $v['money']?></td>
      <td><a class="icon-16-drop"></a></td>
    </tr>
    <?php }?>
  </tbody>
  <tfoot>
    <tr height="52">
      <td colspan="3"><a></a></td>
      <td>合计：</td>
      <td class="price">￥<b id="d_sum_money"></b></td>
      <td><button class="submit" id="btn_sum">结算</button></td>
    </tr>
  </tfoot>
</table>
<script src="<?php echo JS_PATH?>tf-shop_cart.js"></script>


